<?php

/**
 * 
 * @desc String is numeric validation rule 
 * @author Barbushin Sergey http://www.linkedin.com/in/barbushin
 * 
 */
class Validator_Rule_Numeric extends Validator_RuleAbstract {
	
	protected $errorText = 'require to be numeric';

	protected function validate() {
		return $this->value == '' || is_numeric($this->value);
	}
}
